/*
 * Created on Oct 18, 2004
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package com.erclab.internal.xpresso.reportelements;

import com.erclab.internal.xpresso.exceptions.ReportException;
import com.erclab.internal.xpresso.reports.Report;

/**
 * @author rodrigen
 *
 */
public abstract class ReportElement {

	protected String idReportElement;
	protected int displayOrder;
	protected String columnName;
	protected String headerText;
	protected String classHandler;
	protected String style;
	protected String externalDataQuery;
	protected String idExternalDataSource;
	protected boolean isTotalColumn;
	protected String flexClass;
	protected String parameters;


	public abstract String toHTML(String columnValue, String uniqueKeyValue, Report theReport) throws ReportException;
	/**
	 * @return
	 */
	public String getClassHandler() {
		return classHandler;
	}

	/**
	 * @return
	 */
	public String getColumnName() {
		return columnName;
	}

	/**
	 * @return
	 */
	public int getDisplayOrder() {
		return displayOrder;
	}

	/**
	 * @return
	 */
	public String getExternalDataQuery() {
		return externalDataQuery;
	}

	/**
	 * @return
	 */
	public String getIdExternalDataSource() {
		return idExternalDataSource;
	}

	/**
	 * @return
	 */
	public String getHeaderText() {
		return headerText;
	}

	/**
	 * @return
	 */
	public String getIdReportElement() {
		return idReportElement;
	}

	/**
	 * @return
	 */
	public String getStyle() {
		return style;
	}

	/**
	 * @return
	 */
	public boolean getIsTotalColumn() {
		return isTotalColumn;
	}

	/**
	 * @param string
	 */
	public void setClassHandler(String string) {
		classHandler = string;
	}

	/**
	 * @param string
	 */
	public void setColumnName(String string) {
		columnName = string;
	}

	/**
	 * @param i
	 */
	public void setDisplayOrder(int i) {
		displayOrder = i;
	}

	/**
	 * @param string
	 */
	public void setExternalDataQuery(String string) {
		externalDataQuery = string;
	}

	/**
	 * @param string
	 */
	public void setIdExternalDataSource(String string) {
		idExternalDataSource = string;
	}

	/**
	 * @param string
	 */
	public void setHeaderText(String string) {
		headerText = string;
	}

	/**
	 * @param string
	 */
	public void setIdReportElement(String string) {
		idReportElement = string;
	}

	/**
	 * @param string
	 */
	public void setStyle(String string) {
		style = string;
	}

	/**
	 * @param b
	 */
	public void setIsTotalColumn(boolean b) {
		isTotalColumn = b;
	}
	public String getFlexClass() {
		return flexClass;
	}
	public void setFlexClass(String flexClass) {
		this.flexClass = flexClass;
	}
	public String getParameters() {
		return parameters;
	}
	public void setParameters(String parameters) {
		this.parameters = parameters;
	}

}
